module.exports = {
  apps: [{
    name: 'mdy-rm-mis',
    cwd: '/var/mdy-rm-mis/dist/ssr',
    script: './index.js',
    env: {
      DB_HOST: 'localhost',
      DB_USER: 'rmmis_root',
      DB_PASSWORD: '241022!mdY',
      DB_DATABASE: 'mdy_rm_mis',
      DB_PORT: 3306,
      HTTP_PORT: 8689
      // HTTPS_PORT: 8888,
      // WEBSOCKET_PORT: 8096,
      // SSL_KEY: '/etc/letsencrypt/live/jinma.t3y.top/privkey.pem',
      // SSL_CERT: '/etc/letsencrypt/live/jinma.t3y.top/fullchain.pem'
    },
    error: '/root/.pm2/logs/mdy-rm-mis_error.log', // 错误日志路径
    output: '/root/.pm2/logs/mdy-rm-mis_out.log', // 正常日志路径
    merge_logs: true // 设置追加日志而不是新建日志
  }]
}
